package com.fansl.allround.wechat.mp.config;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.session.InternalSessionManager;
import me.chanjar.weixin.common.session.WxSession;
import me.chanjar.weixin.common.session.WxSessionManager;
import org.springframework.stereotype.Component;
import redis.clients.jedis.JedisPool;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/9/6 18:40
 */
@Slf4j
@AllArgsConstructor
public class CustomWxSessionManager implements WxSessionManager {
    private JedisPool jedisPool;
    @Override
    public WxSession getSession(String s) {
        jedisPool.getResource().get(s);
        return null;
    }

    @Override
    public WxSession getSession(String s, boolean b) {
        return null;
    }
}
